package org.apache.dolphinscheduler.dao.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author denggh
 * @since 2023-06-15
 */
@TableName("t_ds_product_order_item")
public class ProductOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String no;

    private Integer taskInstanceId;
    /**
     * 资源编号
     */
    private String resourceNo;

    /**
     * 订单明细金额
     */
    private BigDecimal amount;
    private BigDecimal realAmount;
    private BigDecimal discountAmount;
    /**
     * 资源使用率
     */
    private BigDecimal resourceUsage;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    private Integer taskStatus;

    /**
     * 订单id
     */
    private Integer productOrderId;

    private Date createTime;

    private Date updateTime;

    /**
     * 资源名称
     */
    private String productName;

    /**
     * worker ip
     */
    private String host;

    /**
     * 资源类型 0 = 虚拟资源 1 = 物理资源 2 = 模型
     */
    private Integer productType;

    /**
     * 资源来源 0 = 平台 1 = 个人 2 = 企业
     */
    private Integer productSource;

    /**
     * 计费类型 0 = 按量计费
     */
    private Integer billType;

    /**
     * 计费规则 0 = 标准计费 1=梯度计费
     */
    private Integer billRule;

    /**
     * 资源单价
     */
    private BigDecimal price;

    /**
     * cpu核数
     */
    private Integer vCpu;

    /**
     * 内存大小
     */
    private Long memory;

    /**
     * 平台服务费比例
     */
    private BigDecimal serviceRatio;

    /**
     * 存储大小
     */
    private Long dataTotal;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getResourceNo() {
        return resourceNo;
    }

    public void setResourceNo(String resourceNo) {
        this.resourceNo = resourceNo;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getRealAmount() {
        return realAmount;
    }

    public void setRealAmount(BigDecimal realAmount) {
        this.realAmount = realAmount;
    }

    public BigDecimal getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getResourceUsage() {
        return resourceUsage;
    }

    public void setResourceUsage(BigDecimal resourceUsage) {
        this.resourceUsage = resourceUsage;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getProductOrderId() {
        return productOrderId;
    }

    public void setProductOrderId(Integer productOrderId) {
        this.productOrderId = productOrderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskInstanceId() {
        return taskInstanceId;
    }

    public void setTaskInstanceId(Integer taskInstanceId) {
        this.taskInstanceId = taskInstanceId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Integer getProductSource() {
        return productSource;
    }

    public void setProductSource(Integer productSource) {
        this.productSource = productSource;
    }

    public Integer getBillType() {
        return billType;
    }

    public void setBillType(Integer billType) {
        this.billType = billType;
    }

    public Integer getBillRule() {
        return billRule;
    }

    public void setBillRule(Integer billRule) {
        this.billRule = billRule;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getvCpu() {
        return vCpu;
    }

    public void setvCpu(Integer vCpu) {
        this.vCpu = vCpu;
    }

    public Long getMemory() {
        return memory;
    }

    public void setMemory(Long memory) {
        this.memory = memory;
    }

    public BigDecimal getServiceRatio() {
        return serviceRatio;
    }

    public void setServiceRatio(BigDecimal serviceRatio) {
        this.serviceRatio = serviceRatio;
    }

    public Long getDataTotal() {
        return dataTotal;
    }

    public void setDataTotal(Long dataTotal) {
        this.dataTotal = dataTotal;
    }

    @Override
    public String toString() {
        return "ProductOrderItem{" +
                "id=" + id +
                ", taskInstanceId='" + taskInstanceId + '\'' +
                ", resourceNo='" + resourceNo + '\'' +
                ", amount=" + amount +
                ", resourceUsage=" + resourceUsage +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", productOrderId=" + productOrderId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
